package com.dmwork.service.customer.mapper;

import com.dmwork.service.customer.entity.CustomerFollower;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 用户关注记录表 Mapper 接口
 * </p>
 *
 * @author 李天
 * @since 2021-03-10
 */
@Mapper
@Repository
public interface CustomerFollowerMapper extends BaseMapper<CustomerFollower> {

    /**
     * 查询指定用户的所有粉丝id列表
     * @param customerId
     * @return
     */
    List<String> getFollowerIdList(@Param("customerId") String customerId);

    /**
     * 查询指定用户的所有关注的id
     * @param followerId
     * @return
     */
    List<String> getFollowedCustomerIdList(@Param("followerId") String followerId);
}
